package http_media_router_centre

import "time"

type Response struct {
	Code int64  `json:"code"`
	Msg  string `json:"msg"`
}

type StreamResponse struct {
	Response
	Data PlayResponse `json:"data"`
}

type PlayResponse struct {
	StreamID         string
	ParentDeviceID   string
	ParentChannelID  int64
	MediaID          string
	StreamType       int64
	StructServerHost string //结构化中心IP
	MediaServerHost  string
	MediaServerPort  string
	SSRCStr          string
	HttpPort         int64
	App              string
	RtmpPlayUrl      string
	NatRtmpPlayUrl   string
	WsFlvPlayUrl     string
	MscProxyKey      string //addStreamProxy接口返回的key
	PullStreamUrl    string //拉流地址（三方接入）
	DeviceID         string
	DeviceCity       string
}

type UAVRequest struct {
	DeviceID   string
	MediaID    string
	OldRtmpUrl string
	RtmpUrl    string
}

type UAVResponse struct {
	Response
	Data UAVData `json:"data"`
}

type UAVData struct {
	ID         uint
	DeviceID   string
	MediaID    string
	IP         string //媒体中心IP
	RtmpPort   int64
	RtmpUrl    string
	NatRtmpUrl string
}

type ShortRequest struct {
	LongURL string
	Timeout time.Time
}

type ShortResponse struct {
	Response
	Data ShortData `json:"data"`
}

type ShortData struct {
	ShortURL string
	PlayURL  string
}
